//
//  HRGetLikesModel.m
//  Hear
//
//  Created by mac on 2017/4/13.
//  Copyright © 2017年 mac. All rights reserved.
//

#import "HRGetLikesModel.h"

@implementation HRGetLikesModel
-(void)getLikeRequest:(NSDictionary*)requstDict isSeccess:(void(^)(BOOL isSeccess))isSeccess{
    YTKApi *api = [YTKApi apiPostWithUrl:@"MomentsInfo/Post_SaveMomentsLike" para:requstDict];
    [api getSuccessToken:^() {
        api.foceNoTocken = NO;
        [api setRequestSerializerType:YTKRequestSerializerTypeJSON];
        [api startWithSuccess:^(YTKBaseRequest *request) {
            isSeccess(YES);
        }];
    }];
}

-(void)getDeletLikeRequest:(NSDictionary*)requstDict isSeccess:(void(^)(BOOL isSeccess))isSeccess{
    YTKApi *api = [YTKApi apiDeleteWithUrl:@"MomentsInfo/Delete_DeleteMomentsLike" para:requstDict];
    [api getSuccessToken:^() {
        api.foceNoTocken = NO;
        [api setRequestSerializerType:YTKRequestSerializerTypeJSON];
        [api startWithSuccess:^(YTKBaseRequest *request) {
            isSeccess(YES);
        }];
    }];
}
@end
